Repository navigation
add rabbitmq jasypt property encryption facility - #13676
DaanHoogland wants to merge 3 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #13676 +/- ##
============================================
- Coverage 18.32% 18.32% -0.01%
Complexity 16644 16644
============================================
Files 5939 5940 +1
Lines 537768 537781 +13
Branches 65929 65932 +3
============================================
- Hits 98551 98533 -18
- Misses 428008 428040 +32
+ Partials 11209 11208 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
9adf608 to
55fb559
Compare
|
@blueorangutan package |
There was a problem hiding this comment.
Pull request overview
Adds a Spring PropertyPlaceholderConfigurer implementation in utils to decrypt ENC(...)-wrapped property values using a provided Jasypt StringEncryptor, intended to replace the missing/incompatible jasypt-spring3 placeholder configurer referenced in RabbitMQ encryption docs/config.
Changes:
- Introduces
EncryptablePropertyPlaceholderConfigurerto decryptENC(...)property values during Spring placeholder resolution. - Adds unit tests covering encrypted, whitespace-wrapped encrypted, plain, and null property values.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| utils/src/main/java/com/cloud/utils/crypt/EncryptablePropertyPlaceholderConfigurer.java | New Spring placeholder configurer that decrypts ENC(...) values via Jasypt StringEncryptor. |
| utils/src/test/java/com/cloud/utils/crypt/EncryptablePropertyPlaceholderConfigurerTest.java | Unit tests validating decrypt/pass-through/null handling behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1e9623a to
e557f3b
Compare
Description
This PR...
Fixes: #13352
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?